class Role < ActiveRecord::Base
  has_and_belongs_to_many :users, :join_table => 'roles_users', :uniq => true
  validates_presence_of :name
  validates_uniqueness_of :name, :scope => :deleted_at, :case_sensitive => false
end
